package applet;

import java.util.ArrayList;
import java.util.HashMap;

import processing.core.PImage;

import lmf.ArtistLFM;
import musicbrainz.ArtistMB;


public class Artist {
	
	public int id;
	public String mbid;
	public String name;
	//an artist does name these:
	/*public int age;
	public String nationality; 
	public int sex;*/
	public long playCount;
	public String life_span_begin, life_span_end;
	public String country;
	public long[] recordsCountByAge, recordsCountBySex;//, recordsCountByCountries;	//the number of records for male/female, different ages and different countries
	public HashMap<String, Long> recordsCountByCountries;	//the number of records for different countries, this can be array as well.


	public Artist(int iid, String imbid, String iname, int iplayCount)
	{
		id = iid;
		mbid = imbid;
		name = iname;
		playCount = iplayCount;
		recordsCountByAge = new long[10];
		
		recordsCountBySex = new long[2];
		
		recordsCountByCountries = new HashMap<String, Long>();
		
		for (int i = 0; i < recordsCountBySex.length; i++) {
			recordsCountBySex[i] = 0;
		}
		/*for (int i = 0; i < recordsCountByCountries.length; i++) {
			recordsCountByCountries[i] = 0;
		}*/
		for (int i = 0; i < recordsCountByAge.length; i++) {
			recordsCountByAge[i] = 0;
		}

		/*
		 * get additional artist info 
		 * we shouldn't do this in here and only get the info when we need it
		 */
		/*ArtistLFM lfmInfo = GLOBAL.http.getLFMArtistInfo(mbid);
		ArtistMB mbInfo = GLOBAL.http.getMBAristInfo(mbid);*/

	}
	
	/*public Artist(String iname, int iage, String inationality, int isex, long iplay, int iid)
	{
		name = iname;
		age = iage;
		nationality = inationality;
		sex = isex;
		playCount = iplay;
		id = iid;
	}
	*/
}
